package com.zhouxiaoge.listener;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.SessionListener;

/**
 * @author 周明阳
 * mail:gqzmy@outlook.com
 * 时间:2018-04-09 17:01
 */

public class MySessionListener1 implements SessionListener {
    @Override
    public void onStart(Session session) {
        System.out.println("MySessionListener1 会话创建：" + session.getId());
    }

    @Override
    public void onStop(Session session) {
        System.out.println("MySessionListener1 会话停止：" + session.getId());
    }

    @Override
    public void onExpiration(Session session) {
        System.out.println("MySessionListener1 会话过期：" + session.getId());
    }
}
